package com.ruoyi.bus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bus.mapper.WxTravelMapper;
import com.ruoyi.bus.domain.WxTravel;
import com.ruoyi.bus.service.IWxTravelService;

/**
 * 电话Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
@Service
public class WxTravelServiceImpl implements IWxTravelService 
{
    @Autowired
    private WxTravelMapper wxTravelMapper;

    /**
     * 查询电话
     * 
     * @param id 电话主键
     * @return 电话
     */
    @Override
    public WxTravel selectWxTravelById(Long id)
    {
        return wxTravelMapper.selectWxTravelById(id);
    }

    /**
     * 查询电话列表
     * 
     * @param wxTravel 电话
     * @return 电话
     */
    @Override
    public List<WxTravel> selectWxTravelList(WxTravel wxTravel)
    {
        return wxTravelMapper.selectWxTravelList(wxTravel);
    }

    /**
     * 新增电话
     * 
     * @param wxTravel 电话
     * @return 结果
     */
    @Override
    public int insertWxTravel(WxTravel wxTravel)
    {
        return wxTravelMapper.insertWxTravel(wxTravel);
    }

    /**
     * 修改电话
     * 
     * @param wxTravel 电话
     * @return 结果
     */
    @Override
    public int updateWxTravel(WxTravel wxTravel)
    {
        return wxTravelMapper.updateWxTravel(wxTravel);
    }

    /**
     * 批量删除电话
     * 
     * @param ids 需要删除的电话主键
     * @return 结果
     */
    @Override
    public int deleteWxTravelByIds(Long[] ids)
    {
        return wxTravelMapper.deleteWxTravelByIds(ids);
    }

    /**
     * 删除电话信息
     * 
     * @param id 电话主键
     * @return 结果
     */
    @Override
    public int deleteWxTravelById(Long id)
    {
        return wxTravelMapper.deleteWxTravelById(id);
    }
}
